

package fastwave.common.auth.sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import fastwave.common.auth.sys.entity.MenuVO;
import fastwave.common.auth.sys.entity.SysMenu;
import fastwave.common.auth.sys.service.SysMenuService;
import fastwave.common.auth.sys.mapper.SysMenuMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * 菜单权限表 服务实现类
 */
@Service
@RequiredArgsConstructor
public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> implements SysMenuService {

	@Override
	public List<MenuVO> findMenuByRoleId(Integer roleId) {
		return baseMapper.listMenusByRoleId(roleId);
	}

}
